home *** CD-ROM | disk | FTP | other *** search
/ Scene Storm / Scene Storm - Volume 1.iso / coding / tools / gcc / gcc270_src.lha / gcc-2.7.0-amiga / config / rs6000 / aix41.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-06-15  |  1.8 KB  |  52 lines

  1. /* Definitions of target machine for GNU compiler,
  2.    for IBM RS/6000 POWER running AIX version 4.1.
  3.    Copyright (C) 1994 Free Software Foundation, Inc.
  4.    Contributed by David Edelsohn (edelsohn@npac.syr.edu).
  5.  
  6. This file is part of GNU CC.
  7.  
  8. GNU CC is free software; you can redistribute it and/or modify
  9. it under the terms of the GNU General Public License as published by
  10. the Free Software Foundation; either version 2, or (at your option)
  11. any later version.
  12.  
  13. GNU CC is distributed in the hope that it will be useful,
  14. but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  16. GNU General Public License for more details.
  17.  
  18. You should have received a copy of the GNU General Public License
  19. along with GNU CC; see the file COPYING.  If not, write to
  20. the Free Software Foundation, 59 Temple Place - Suite 330,
  21. Boston, MA 02111-1307, USA.  */
  22.  
  23.  
  24. #include "rs6000/rs6000.h"
  25.  
  26. #undef ASM_SPEC
  27. #define ASM_SPEC "-u -mpwr"
  28.  
  29. /* These are not necessary when we pass -u to the assembler, and undefining
  30.    them saves a great deal of space in object files.  */
  31.  
  32. #undef ASM_OUTPUT_EXTERNAL
  33. #undef ASM_OUTPUT_EXTERNAL_LIBCALL
  34. #define ASM_OUTPUT_EXTERNAL(FILE, DECL, NAME)    \
  35. { rtx _symref = XEXP (DECL_RTL (DECL), 0);    \
  36.   if ((TREE_CODE (DECL) == VAR_DECL        \
  37.        || TREE_CODE (DECL) == FUNCTION_DECL)    \
  38.       && (NAME)[0] != '*'            \
  39.       && (NAME)[strlen (NAME) - 1] != ']')    \
  40.     {                        \
  41.       char *_name = (char *) permalloc (strlen (XSTR (_symref, 0)) + 5); \
  42.       strcpy (_name, XSTR (_symref, 0));    \
  43.       strcat (_name, TREE_CODE (DECL) == FUNCTION_DECL ? "[DS]" : "[RW]"); \
  44.       XSTR (_symref, 0) = _name;        \
  45.     }                        \
  46. }
  47.  
  48. #undef LINK_SPEC
  49. #define LINK_SPEC "-bpT:0x10000000 -bpD:0x20000000 %{!r:-btextro} -bnodelcsect\
  50.    %{static:-bnso -bI:/lib/syscalls.exp} %{g*:-bexport:/usr/lib/libg.exp}\
  51.    %{shared:-bM:SRE}"
  52.